




<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="search_data"  placeholder="用户名|UID" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <div class="layui-input-inline">
                <select name="is_legal_currency">
                    <option value="" >全部类型</option>
                    <option value="0" {if condition=" isset($param['is_legal_currency']) && $param['is_legal_currency'] eq '0'"} selected="selected" {/if}>币币</option>
                    <option value="1" {notempty name="param['is_legal_currency']"}{if condition="$param['is_legal_currency'] eq 1"} selected="selected" {/if}{/notempty} >法币</option>
                </select>
            </div>
            <div class="layui-input-inline">
                <select name="wallet_id">
                    <option value="" >全部币种</option>
                    {volist name='wallet' id='vo'}
                    <option value="{$vo['id']}" {notempty name="param['wallet_id']"}{if condition="$param['wallet_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>
            <button class="layui-btn"  id="search"  url="{:url('admin_recharge_log')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
        <ob_link><a  href="{:url('recharge')}" style="color: white">   <button class="layui-btn" >充值</button></a></ob_link>

        <ob_link> <button class="layui-btn export" url="{:url('exportAdminRechargeList')}"> 导 出</button></ob_link>
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>
        <!--<span class="x-right" style="line-height:40px; margin-right:10px;">总包：{$list.ke}</span>-->
        <!--<span class="x-right" style="line-height:40px;margin-right:10px;">理财包：{$list.gc} </span>-->

    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>序号</th>
            <th>ID</th>
            <th>基础信息</th>
            <th>信息</th>


        </tr>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td>{$k}</td>
            <td>{$vo.id}</td>
            <td>
                <div><label>用户名:</label><span>{$vo.username}{if condition ="$vo.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</span></div>
                <div>  <label>手机:</label><span>{$vo.mobile|default='未绑定'}</span></div>
                <div> <label>等级:</label><span>{$vo.member.level.level_name}</span></div>

            </td>

            <td>
                <div><label>钱包类型:</label><span>{if condition="$vo.form_wallet_id eq 33"}商铺充值{else/}{$vo.wallet.name}{if condition="$vo.form_wallet_id gt 3"}{if condition="$vo.is_legal_currency eq 1"}(法币){else/}(币币){/if}{/if} {/if} </span></div>
                <div>  <label>充值金额:</label><span>{$vo.number}</span></div>
                <div> <label>充值备注:</label><span>{$vo.remark}</span></div>
                <div> <label>充值时间:</label><span>{$vo.create_time}</span></div>
                <div> <label>充值人:</label><span>{$vo.admin_name}</span></div>

            </td>


        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>
